package com.hl233.framework.module;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 张振强15065206763
 * @create 2024-09-07
 */
@Component
@RabbitListener(queues = "helloMQ")
public class HelloReceiver {

    @RabbitHandler
    public void process(String message) {
        System.out.println("从helloMQ获取的消息message: ==========================="+message);
    }
}
